package com.example.pubsub;

public class EmailNotificationListener implements EventListener {
    private String email;

    public EmailNotificationListener(String email) {
        this.email = email;
    }

    @Override
    public void onEvent(Event event) {
        System.out.println("发送邮件通知到 " + email + ": " + event.getType() + " - " + event.getMessage());
    }
}
